package com.itheim.client.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * @Author longbosheng
 * @Date 2022/6/21 9:13
 * @PackageName:com.itheim.client.pojo
 * @ClassName: Address
 * @Description: TODO
 * @Version 1.0
 */
@Data
@TableName("address")
public class Address {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;  //主键,
    @TableField(value = "user_id")
    private String userId;   //用户id,
    private String consignee;    //收货人,
    private String sex;  //性别 0 女 1 男,
    private String phone;    //手机号,
    @TableField(value = "province_code")
    private String provinceCode;   //省级区划编号,
    @TableField(value = "province_name")
    private String provinceName;  //省级名称,
    @TableField(value = "city_code")
    private String cityCode; //市级区划编号,
    @TableField(value = "city_name")
    private String cityName;  //市级名称,
    @TableField(value = "district_code")
    private String districtCode;  // 区级区划编号,
    @TableField(value = "district_name")
    private String districtName; // 区级名称,
    private String detail;    //详细地址,
    private String label;    //标签,
    @TableField(value = "is_default")
    private int isDefault;//是否是默认地址
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;  // 创建时间,
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;   //更新时间,
    @TableField(value = "create_user")
    private String createUser;  // 创建人,
    @TableField(value = "update_user")
    private String updateUser;   //修改人,
    @TableField(value = "is_deleted")
    private int isDeleted;  // 是否删除,
}
